﻿namespace Whoot.UI
{
    public interface IUILayerManager
    {
        void SetUIKit(IUIKit kit);
        /// <summary>
        /// 增加一个UI层级
        /// </summary>
        /// <param name="name">层级名字</param>
        /// <param name="sortingOrder">排序，越大越高</param>
        /// <param name="isDefault">是否默认层级</param>
        void AddLayer(string name, int sortingOrder, bool isDefault = false);
        /// <summary>
        /// 移除一个UI层级
        /// </summary>
        /// <param name="name"></param>
        void RemoveLayer(string name);
        
        void AddChild(IUIPanel panel);
        void RemoveChild(IUIPanel panel);
        void Top(IUIPanel panel);
    }
}